<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class BpmOrgUserDeptMap extends Model
{
    use HasFactory;

    protected $table = 'BPM_OrgUserDeptMap';

    protected $connection = 'bpm_rs';

    public function foldername()
    {
        return $this->hasOne(BpmOrgDeptList::class,'Folderid','Folderid')
            ->where('OrgClass',1);
    }
}
